@extends("home.public.home")

@section("content")
<link rel="stylesheet" href="/style/home/css/home/userment.css">
<div class="user_right">
        <div class="user_tab">

            <div class="tab_body">
                <!-- 待评价 -->
                <div class="tab_list" style="display:block;">
                    <div class="all_list user_comment">
                        <div class="comment_table">
                            <div class="comment_title">
                                <ul class="clearfix">
                                    <li class="comment_mes">商品信息</li>
                                    <li class="comment_time">购买时间</li>
                                    <li class="comment_my">我的评价</li>
                                    <li class="comment_state">
                                        <!--<div class="selectContainer selectContainer4">
                                            <span class="selectOption">待评价</span>
                                            <ul class="selectMenu">
                                                <li>待评价</li>
                                                <li>已评价</li>
                                            </ul>
                                            <span class="shows"></span>
                                        </div>-->
                                    </li>
                                </ul>
                            </div>
                            <div class="comment_list" id="eavluation-list">
                            @foreach($orders as $k=>$v)
                                <ul class="clearfix">
                                    <li style="width:300px;float:left"><img src="{{$v['gimg']}}" width="100" height="100" alt="" />
                                    <span style="margin-left:50px;">{{$v['title']}}</span>
                                    </li>
                                    <li style="width:200px;float:left; padding-left:200px;">{{date("Y-m-d h:i:s",$v['time'])}}</li>
                                    <li style="width:200px;float:left; padding-left:50px;">@if($v['comment']==1)已评价@else <a href="/userment/add/{{$v['gid']}}/{{$v['code']}}">未评价</a> @endif </li>
                                </ul>
                            @endforeach
                            </div>
                        </div>
                        <div id="page_number" class="page_number">

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection